import request from "@/utils/request";

// 查询制造执行MES-工厂建模列表
export function listFactory(query) {
  return request({
    url: "/mes/factory/list",
    method: "get",
    params: query,
  });
}

// 查询制造执行MES-工厂建模详细
export function getFactory(id) {
  return request({
    url: "/mes/factory/" + id,
    method: "get",
  });
}

// 新增制造执行MES-工厂建模
export function addFactory(data) {
  return request({
    url: "/mes/factory",
    method: "post",
    data: data,
  });
}

// 修改制造执行MES-工厂建模
export function updateFactory(data) {
  return request({
    url: "/mes/factory",
    method: "put",
    data: data,
  });
}

// 删除制造执行MES-工厂建模
export function delFactory(id) {
  return request({
    url: "/mes/factory/" + id,
    method: "delete",
  });
}
